package com.qfjy.project.weixin.api.accessToken;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @ClassName AccessTokenListener
 * @Description TODO 监听器 项目级别（application) ServletContext
 * @Author guoweixin
 * @Date 2022/12/1
 * @Version 1.0
 */
@Slf4j
//@Component
public class AccessTokenListener  implements ServletContextListener {

    @Override
    public  void contextInitialized(ServletContextEvent sce) {
        log.info("项目启动啦---》");
        //开启线程
        //new AccessTokenThread().start();
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        log.info("项目关闭啦---》");
    }
}
